<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
      // uni.reLaunch({
      // 	url: '/pages/advert/advert'
      // });
		},
		onShow: function() {
      // #ifdef APP-PLUS
      var args= plus.runtime.arguments;
      if(args){
        var strippedUrl = args.replace('touyanbao://', '');
        setTimeout(() => {
          uni.navigateTo({
            url: strippedUrl
          });
        }, 2000)
      }
      // #endif
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
  .img{
    width: 100%;
    height: 100%;
  }
  .btn{
    margin: 0;
    padding: 0;
    /* #ifdef APP-NVUE */
    border: none;
    /* #endif */
    height: 88rpx;
    line-height: 88rpx;
    background-image: linear-gradient(90deg, #FF644C 0%, #E43222 100%);
    border-radius: 88rpx;
    font-weight: 400;
    font-size: 28rpx;
    color: #FFFFFF;
    &[disabled]:not([type]){
      color: #FFFFFF;
      background-image: linear-gradient(90deg, rgba($color: #FF644C, $alpha: 0.4) 0%, rgba($color: #E43222, $alpha: 0.4) 100%);
    }
    &::after {
      border: none;
    }
  }
  view{
    box-sizing: border-box;
  }
</style>
